@echo off
REM WiFi认证系统 - 重新编译打包脚本 (Windows)
REM 解决 RedisTemplate 编译错误

echo ==========================================
echo 开始重新编译项目...
echo ==========================================

REM 1. 清理所有模块
echo 1. 清理旧的编译文件...
call mvn clean -f ruoyi-common\pom.xml
call mvn clean -f ruoyi-modules\ruoyi-third-party\pom.xml

REM 2. 编译 common 模块
echo 2. 编译 common 模块...
call mvn install -f ruoyi-common\pom.xml -DskipTests

REM 3. 编译 third-party 模块  
echo 3. 编译 third-party 模块...
call mvn clean package -f ruoyi-modules\ruoyi-third-party\pom.xml -DskipTests

echo ==========================================
echo 编译完成！
echo ==========================================
echo.
echo 请将以下文件上传到服务器：
echo ruoyi-modules\ruoyi-third-party\target\ruoyi-modules-third-party.jar
echo.
echo 然后重启服务
pause

